import { message } from "antd"
import React from "react"

export const createLoading = (content:React.ReactNode)=>{
    const key = +(new Date())
    message.loading({
        key,
        content
    })
    return ()=>{
        message.destroy(key);
    }
}